/**
 * jims
 */
package com.jims.master.modules.doctor.service;

import com.jims.master.common.persistence.Page;
import com.jims.master.common.service.CrudService;
import com.jims.master.modules.doctor.dao.HisDataIcd10Dao;
import com.jims.master.modules.doctor.entity.HisDataIcd10;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Service
 * @author chentao
 * @version 2017-03-21
 */
@Service
@Transactional(readOnly = true)
public class HisDataIcd10Service extends CrudService<HisDataIcd10Dao, HisDataIcd10> {
	@Autowired
	private HisDataIcd10Dao hisDataIcd10Dao;

	public HisDataIcd10 get(String id) {
		return super.get(id);
	}
	
	public List<HisDataIcd10> findList(HisDataIcd10 hisDataIcd10) {
		return super.findList(hisDataIcd10);
	}
	
	public Page<HisDataIcd10> findPage(Page<HisDataIcd10> page, HisDataIcd10 hisDataIcd10) {
		return super.findPage(page, hisDataIcd10);
	}
	
	@Transactional(readOnly = false)
	public int save(HisDataIcd10 hisDataIcd10) {
		return super.save(hisDataIcd10);
	}
	
	@Transactional(readOnly = false)
	public int delete(HisDataIcd10 hisDataIcd10) {
		return super.delete(hisDataIcd10);
	}

	/**
	 * his_data_icd10自动补全
	 * @param q,limit
	 * @author chentao
	 * @return
	 */
	@Transactional(readOnly = false)
	public List<HisDataIcd10> hisDataIcdName(String q,String limit){
		return hisDataIcd10Dao.hisDataIcdName(q,limit);
	}
	
}